﻿using UnityEngine;
using System.Collections;

public class DifficultyManager : MonoBehaviour
{

	[HideInInspector]
	public static DifficultyManager instance; // static allows access from anywhere

	public int level = 0;

	void Awake()
	{
		instance = this;
	}

	public void ChangeLevel()
	{
		if (level < 3)
		{
			level += 1;
		}
		else if (level >= 3)
		{
			level = 0;
		}
	}

	public string CheckLevel()
	{
		if (level == 0)
		{
			return "Easy";
		}
		
		else if (level == 1)
		{
			return "Normal";
		}
		
		else if (level == 2)
		{
			return "Hard";
		}
		
		else if (level == 3)
		{
			return "Extreme";
		}
		
		else
		{
			return "";
		}
	}
}